<?php include('header.php'); ?>

<tr>
<td valign="top">
<div class="minibox">

<h1>Site Links</h1>
<?php
if($userCan['viewpage'])
echo "<a href='$siteurl/index.php?action=category'>View Pages</a><br />";
echo "<a href='$siteurl/index.php?action=forum'>Forums</a><br />";

if($userCan['addpage'])
echo "<a href='$siteurl/index.php?action=addpage'>Write an Article</a><br />";

if($userCan['viewprofile']) 
echo "<a href='$siteurl/index.php?action=memberlist'>View Memberlist</a><br /><br /><br />";
?>

<h1>User Links</h1>
<?php

if($userCan['admin'])
echo "<a href='$siteurl/admin.php'>Admin CP</a><br />";

if($userCan['editprofile']){
echo "<a href='$siteurl/index.php?action=editprofile'>Edit Profile</a><br />";
echo "<a href='$siteurl/index.php?action=logout'>Logout</a><br />";

} else {

login_form();

		echo "<a href='$siteurl/index.php?action=register'>Register</a><br /> ";
		}
		?>
<h1>Important Pages</h1>
~ <a href="http://amigoshack.com/safety">Safety</a><br />
~ <a href="http://amigoshack.com/tos">Terms Of Service</a>
</div>

<div class="minibox">

<?php 

echo 'something';

findThemes();

echo "$scriptsDir";




 ?>


</div>
<div class="minibox">
<h1>Latest Pages</h1>
<?php latestPages('3'); ?>
</div>
<div class="spacer">&nbsp;</div>

</td>
<td width="555" valign="top">
<div class="mainbox">
<h1>Welcome To AmigoShack!</h1>

<?php

include("$sourceDir/content.php");




?>
</div>
</td>

</tr>

<?php include('footer.php'); ?>

